<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Index extends CI_Controller {
// 
//  index.php
//  phpweb
//  
//  Created by WillLee on 2011-06-28.
//  Copyright 2011 lishuzu. All rights reserved.
// 

	function __construct()
	{
		parent::__construct();
 		$this->load->model('common/security_model');
		if($this->security_model->isLogin() === FALSE){
			showmessage('请登录', 'login', 2);
		}
		$this->load->model('index_model');
	}
	
	public function index()
	{
		$data = $this->index_model->get_index_data();
		$this->load->template('index_tpl',$data);
	}
}

/* End of file index.php */
/* Location: ./application/controllers/index.php */